import { Alova } from '@/utils/http/alova/index';

//获取table
export function getVideoToken() {
  return Alova.Get('/admin/upload/video');
}
export function getVideo(params: any) {
  return Alova.Post('/admin/video', params);
}
export function getVideoAll(params: any) {
  return Alova.Post('/admin/video/all', params);
}
export function putVideo(params: any) {
  return Alova.Put('/admin/video', params);
}
export function patchVideo(params: any) {
  return Alova.Patch('/admin/video', params);
}
export function getVideoInfo(id: number) {
  return Alova.Get('/admin/video/' + id);
}
export function deleteVideo(id: number) {
  return Alova.Delete('/admin/video/' + id);
}
